<template>
	<div class="footer" :class="{ active: white }">
		<div class="footer-box overflow-hidden">
			<div v-if="list.length > 0" class="links">
				<a v-for="item in list" :key="item.id" :href="item.url" target="_blank">{{ item.name }}</a>
			</div>

			<div class="info1">
				Copyright @ 2018-2023 www.ccshe.com
			</div>
			<div class="info1">
				电子营业执照<span style="width:20px;display:inline-block;"></span>人力资源服务许可证<span
					style="width:20px;display:inline-block;"></span>劳务派遣经营许可证
			</div>
			<div class="info1">
				备案 / 许可证编号：鲁ICP备2023043882号
			</div>
		</div>
	</div>
</template>
<script>
	import { mapState } from 'vuex'

	export default {
		props: ['status', 'white'],
		data() {
			return {
				loading: false,
				list: [{
					name: '网站首页',
					url: '/'
				}, {
					name: '帮助中心',
					url: '/'
				}, {
					name: '联系我们',
					url: '/'
				}, {
					name: '客户服务',
					url: '/'
				}, {
					name: '隐私政策',
					url: '/'
				}, {
					name: '广告服务',
					url: '/'
				}, {
					name: '网站地图',
					url: '/'
				}, {
					name: '意见反馈',
					url: '/'
				}],
			}
		},
		computed: { ...mapState(['config']), },
		mounted() {
			// this.getData()
		},
		methods: {
			getData() {
				if (this.status) {
					this.$api.Home.FooterLink().then(res => {
						// this.list = res.data
					})
				}
			},
		},
	}
</script>
<style lang='less' scoped>
	.footer {
		position: absolute;
		bottom: 0;
		margin-top: 50px;
		width: 100%;
		background: #3c3e44;
		color: #ffffff;

		&.active {
			margin-top: 0px;
		}

		.footer-box {
			width: 1200px;
			margin: 0 auto;
			display: flex;
			flex-direction: column;
			padding: 30px 0px 45px 0px;
			box-sizing: border-box;

			.tit {
				width: 100%;
				height: 16px;
				font-size: 18px;
				font-weight: 400;
				color: #ffffff;
				line-height: 16px;
				margin-bottom: 20px;
			}

			.links {
				width: 100%;
				display: flex;
				flex-direction: row;
				justify-content: center;
				flex-wrap: wrap;
				margin-top: 20px;

				a {
					height: 14px;
					font-size: 14px;
					font-weight: 400;
					color: #eee;
					line-height: 14px;
					margin-right: 50px;
					margin-bottom: 15px;
				}
			}

			.info2 {
				width: 240px;

				margin: 0 auto;
				cursor: pointer;

				a {
					width: 100%;
					height: 100%;

					img {
						width: 240px;

					}
				}
			}

			.info1 {
				width: 100%;
				text-align: center;
				height: 14px;
				font-size: 14px;
				font-weight: 400;
				color: #eee;
				line-height: 14px;
				margin-top: 16px;
			}
		}
	}
</style>
